package com.tencent.txcc.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.tencent.txcc.domain.RecommendCode;
import com.tencent.txcc.mapper.RecommendCodeMapper;
import com.tencent.txcc.service.IRecommendCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author director
 * @since 2022-10-04
 */
@Service
public class RecommendCodeServiceImpl extends ServiceImpl<RecommendCodeMapper, RecommendCode> implements IRecommendCodeService {

    @Autowired
    private RecommendCodeMapper recommendCodeMapper;

    @Override
    public String getCodeByUserId(Long user_id) {
        String code = recommendCodeMapper.getCodeByUserId(user_id);
        return code;
    }
}
